// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: #4f99cd !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;
    .el-tag {
      margin-right: 0px;
    }
  }
}



// 弹窗头部样式
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;

  .el-dialog__header {
    padding: 10px;
    background: #3589dd;

    .el-dialog__title {
      font-size: 14px;
      color: #fff;
    }

    .el-dialog__close {
      color: #fff;
    }

    .el-dialog__headerbtn {
      top: 13px;
    }
  }
}

// 弹窗标题样式
.el-dialog__title {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}

// 弹窗标题前加图标
.el-dialog__title:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-image: url(../assets/favicon.png);
  background-size: cover;
  background-repeat: no-repeat;
  /* background-position: center top 5px; */
}

.el-button--warning {
  color: #FFFFFF;
  background-color: #e5a144;
  border-color: #e5a144;
}
.el-button--danger {
  color: #FFFFFF;
  background-color: #f36b6e;
  border-color: #f36b6e;
}

//弹框内容使用分割线包裹内容
.rule-container {
  border: 1px solid #ddd;
  /*方框无顶部线*/
  border-top: none;
  padding: 20px 20px 0 20px;
  /*左右内边距*/
}

//深色模式下方框线颜色
.night {
  .rule-container {
    border: 1px solid #606266;
    border-top: none;
  }

  .topSubmitBtn {
    border-bottom: 1px solid #3f4456;
  }

  .el-input--medium .el-input__inner {
    background: #2a2d3c;
    border: 1px solid #3f4456;
    color: #fff;
  }



  .el-table__fixed-right-patch {
    background-color: #3e4252 !important;
    border: 1px solid #3e4252;
  }

  
    
}

.rule-content {
  padding: 20px 0;
  /*上下内边距*/
}

//弹框顶部分割线深色样式
.night {
  .el-divider__text {
    background-color: #303445;
    color: white;
  }
}

.el-divider {
  margin: 0;
  /*去除默认的外边距*/
  background-color: #ddd;
  /*分割线的颜色*/
}

//弹框中dialog-footer距上边分割线距离
.lineToFooter {
  margin-top: 30px;
  /*分割线距离.rule-container顶部距离*/
}

// 表格p标签
.el-table p {
  margin: 0;
}

// 顶部保存按钮样式
.topSubmitBtn {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #c7e2fe
}

// 表格fixed=right最后一行显示错误
.el-table__fixed,
.el-table__fixed-right {
  height: 100% !important;
}


// 表格数据为空
.el-table__empty-block {
  background-image: url("../assets/nodata.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 200px;
  height: 200px;
  margin-top: 25px;
  margin-bottom: 60px;
  min-height: 200px;
  z-index: 10000000000px;

  span {
    position: relative;
    top: 50px;
    font-size: 14px;
  }

  .el-table__empty-text {
    padding-top: 80px;
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;
    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}


// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// el-autocomplete自定义内容行高
.el-autocomplete-suggestion li {
  line-height: 20px;
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

//Intelligence.vue文件中深色模式下lefttree换边框颜色
.night {
  .el-tree-node {
    background: #303445 !important;
    padding: 0 1px;
  }

  .el-tree-node:focus>.el-tree-node__content {
    background-color: #2a2d3c !important;
  }

  .el-table__body-wrapper {
    background: #303445;
  }
}

// 深色和浅色模式下节点被选中时字体的颜色
.el-tree-node:focus>.el-tree-node__content {
  color: #459ffc !important;
}



// 下拉框深色模式下的样式

.nightClass {


  border: 1px solid #2a2d3c !important;

  .el-select-dropdown__item selected hover {
    background-color: #303445 !important;
  }

  .el-select-dropdown__item.selected.hover {
    background-color: #303445 !important;
  }
  .el-select-dropdown__empty{
    background-color: #2a2d3c !important;
  }

  .el-select-dropdown__item.selected {
    background-color: #303445 !important;
  }

  .el-cascader-panel .el-radio {
    display: none;
  }

  .popper__arrow::after {
    color: #1b2532 !important;
    border-bottom-color: #1b2532 !important;
    border-top-color: #1b2532 !important;
  }

  .el-input--small .el-input__inner {
    color: white !important;
    background-color: #314054 !important;
  }

  .el-scrollbar {
    background-color: #2a2d3c;
    color: white;
    border: 1px solid #2a2d3c;

    .el-time-spinner__item {
      color: white;
    }

    .el-time-spinner__item.active:not(.disabled) {
      color: #1890ff;
    }

    .el-time-spinner__item:hover:not(.disabled):not(.active) {
      background-color: #303445;
    }

    .el-select-dropdown__item.hover,
    .el-select-dropdown__item:hover {
      background-color: #303445;
    }

    .el-select-dropdown__item {
      color: #fff;
    }

    .el-select-dropdown__item.selected {
      color: #1890ff;
    }

  }

  .el-select-dropdown {
    border: 1px solid #303445 !important;
  }



  // 日期选择框样式


  .el-range-editor--small.el-input__inner {
    color: white !important;
    background-color: #314054 !important;
    border: none !important;
  }

  .el-date-table td.disabled div {
    background: #1b2532;
  }

  .el-range-editor--small.el-input__inner:not(:placeholder-shown) {
    color: white;
    background-color: #314054 !important;
  }

  .el-date-editor .el-range-input::placeholder {
    color: #5A6676;
    /* placeholder颜色 */
  }



  .el-picker-panel [slot=sidebar],
  .el-picker-panel__sidebar {
    background-color: #324053;
    border-right: 1px solid #5a6675;
  }


  .el-picker-panel {
    color: #FFFFFF;
    border: 1px solid #5a6675;
    background-color: #314054;

    .available {
      color: #fff;
    }

    .el-date-table td.available:hover {
      color: #1890ff;
    }

    .el-date-editor .el-range-input {
      color: #fff;
    }

    .el-date-range-picker__time-header {
      border-bottom: 1px solid #5a6675;

      .el-input--small .el-input__inner {
        border: 1px solid #5a6675;
      }
    }

    .el-date-range-picker__time-header>.el-icon-arrow-right {
      color: #FFFFFF;
    }

    .el-date-range-picker__content.is-left {
      border-right: #5a6675;
    }

    .el-date-table td.today span {
      color: #1890ff;
    }

    .el-date-range-picker__editor {
      color: #FFFFFF;
    }

    .el-picker-panel__icon-btn {
      color: #FFFFFF;
    }

    .el-date-table td.in-range div,
    .el-date-table td.in-range div:hover,
    .el-date-table.is-week-mode .el-date-table__row.current div,
    .el-date-table.is-week-mode .el-date-table__row:hover div {
      background-color: #1b2532;
    }

    .el-date-table td.end-date span,
    .el-date-table td.start-date span {
      background-color: #1890ff;
      color: #FFFFFF;
    }

    .el-picker-panel__footer {
      border-top: 1px solid #5a6675;
      background-color: #314054;
    }

    .el-date-table th {
      color: #fff;
      border-bottom: 1px solid #5a6675;
    }



    border: 1px solid #3F4456;

    .el-row {
      background-color: #2a2d3c !important;
    }

    ::v-deep .el-form-item__label {
      color: #FFFFFF;
    }

    ::v-deep .el-input__inner {
      color: #fff;
      background-color: #303445;
      border: 1px solid #414556;
    }

    ::placeholder {
      color: #96989e;
    }

    .el-button--info {
      background-color: #7076D8;
      border: 1px solid #7076D8;

      &:hover {
        background-color: #7e83db;
      }
    }



    .el-time-panel__btn {
      color: #FFFFFF;
    }
  }


  // 级联框

  .el-cascader-menu__list {
    background-color: #2a2d3c !important;
    border-radius: 3px !important;
  }

  .el-cascader__dropdown {
    border: 1px solid #2a2d3c !important;
    border: none !important;
  }

  .el-cascader-menu {
    color: white !important;
    border-right: solid 0px #E4E7ED !important;
  }



  [class*=" el-icon-"],
  [class^=el-icon-] {
    color: white !important;
  }

  .el-popper[x-placement^=bottom] {
    border: none !important;
  }

  .el-cascader-node.in-active-path,
  .el-cascader-node.is-active,
  .el-cascader-node.is-selectable.in-checked-path {
    color: #1890ff !important;
  }

  .el-cascader-node__label {}

  .el-cascader-node:not(.is-disabled):focus,
  .el-cascader-node:not(.is-disabled):hover {
    background-color: #303445;
  }



  .el-cascader__suggestion-list {
    background: #243243 !important;
    color: #fff !important;
  }


  .el-input-group__append,
  .el-input-group__prepend {
    background-color: #3e4252;
    border: 1px solid #414556;
  }
}






.el-range-editor--small.el-input__inner {
  color: white !important;
  background-color: #314054 !important;
  border: none !important;
}

.el-date-table td.disabled div {
  background: #1b2532;
}

.el-range-editor--small.el-input__inner:not(:placeholder-shown) {
  color: white;
  background-color: #314054 !important;
}

.el-date-editor .el-range-input::placeholder {
  color: #5A6676;
  /* placeholder颜色 */
}


.el-picker-panel__shortcut:hover {
  color: #1890ff;
}


/* 深色模式下，night 之后的 .el-picker-panel 样式 */
.night ~ .el-picker-panel {
  color: #FFFFFF;
  border: 1px solid #5a6675 !important;
  background-color: #314054;

  .available {
    color: #fff;
  }
  .el-picker-panel__shortcut {
    color: #FFFFFF;
  }
  .el-picker-panel__shortcut:hover {
    color: #1890ff;
  }
  .el-date-table td.available:hover {
    color: #1890ff;
  }

  .el-date-editor .el-range-input {
    color: #fff;
  }

  .el-date-range-picker__time-header {
    border-bottom: 1px solid #5a6675;

    .el-input--small .el-input__inner {
      border: 1px solid #5a6675;
    }
  }

  .el-date-range-picker__time-header>.el-icon-arrow-right {
    color: #FFFFFF;
  }

  .el-date-range-picker__content.is-left {
    border-right: #5a6675;
  }

  .el-date-table td.today span {
    color: #1890ff;
  }

  .el-date-range-picker__editor {
    color: #FFFFFF;
  }

  .el-picker-panel__icon-btn {
    color: #FFFFFF;
  }

  .el-date-table td.in-range div,
  .el-date-table td.in-range div:hover,
  .el-date-table.is-week-mode .el-date-table__row.current div,
  .el-date-table.is-week-mode .el-date-table__row:hover div {
    background-color: #1b2532;
  }

  .el-date-table td.end-date span,
  .el-date-table td.start-date span {
    background-color: #1890ff;
    color: #FFFFFF;
  }

  .el-picker-panel__footer {
    border-top: 1px solid #5a6675;
    background-color: #314054;
    
  }
  .el-button.is-disabled.is-plain,
  .el-button.is-disabled.is-plain:hover,
  .el-button.is-disabled.is-plain:focus {
    background-color: #1b2532 !important;
    border: none;
    color: #FFFFFF;
  }

  .el-button.is-plain,
  .el-button.is-disabled.is-plain:hover,
  .el-button.is-disabled.is-plain:focus {
    background-color: #1890ff;
    border: none;
    color: #FFFFFF;
  }
  .el-time-panel{
    background-color: #314054 !important;
    border: 1px solid #314054 !important;
  }
  .el-time-panel__footer {
    border-top: 1px solid #314054;
  }
  .el-scrollbar {
    background-color: #363b4d !important;
    border: 1px solid #363b4d !important;
  }
  .el-time-panel__btn{
    color:#fff;
  }
  .el-date-table th{
    color: #fff;
    border-bottom: 1px solid #5a6675;
  }
  .el-date-editor .el-range-separator {
    color: #FFFFFF;
  }
  

}
